"""
用户管理模块的接口
"""

def register(url, base_requests, cs):
    """
    注册接口
    :param url:环境数据 http://192.168.0.103:8088/
    :param base_requests: BaseRequests的实例
    :param cs: 注册的参数
    :return: 响应
    """
    url = url + "futureloan/mvc/api/member/register"
    r = base_requests.post(url, data=cs)
    return r

def login(url, base_requsets, cs):  # 登录
    """
    登录接口
    :param url: 环境数据 http://192.168.0.103:8088/
    :param base_requsets: BaseRequests的实例
    :param cs: 登录的参数
    :return: 响应
    """
    url = url + "futureloan/mvc/api/member/login"
    r = base_requsets.post(url, data=cs)
    return r

def list(url, base_requsets):  # 获取用户列表
    url = url + "futureloan/mvc/api/member/list"
    r = base_requsets.get(url)
    return r

def recharge(url,base_requests,cs):
    url = url + "futureloan/mvc/api/member/recharge"
    r = base_requests.post(url,data=cs)
    return r
